package com.services.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import pub.dao.CommonDao;

import com.dto.UsersDto;
import com.services.TestBS;
@Service
public class TestBSImpl implements TestBS {
	@Resource(name="commonDaoImpl")
	private CommonDao dao;
	
	public List<UsersDto> queryUsers() throws Exception{
		StringBuffer sb=new StringBuffer();
		sb.append(" select user_code userCode,user_detail userDetail,user_pwd userPwd,user_class userClass,user_org_code userOrgCode,user_id userId from users");
		
		return dao.CDQuery(sb, UsersDto.class);
	}
}
